package org.vaadin.nf4v.ext.config.handler;

import org.vaadin.nf4v.core.handler.Handler;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Generic annotation for overriding handler implementation for context(window) and page.
 */
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface OverrideHandler {

    /**
     * @return handler interface class
     */
    Class<? extends Handler> handler();
}
